unicsv: Fix memory override with sscanf.
authoroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 1 Sep 2008 21:06:07 +0000 (21:06 +0000)
committeroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 1 Sep 2008 21:06:07 +0000 (21:06 +0000)
gpsbabel/unicsv.c

index 3b4909158babd7cc1420179e0c24eaf217e751a2..3ffb00cd250a3a58d304f219d3ca3f35ca89ac76 100644 (file)
@@ -323,7 +323,7 @@ unicsv_parse_time(const char *str, int *msec, int *date)
        int hour, min, ct, sec;
        int consumed = 0;
        double ms;
-       char sep[1];
+       char sep[2];
        int ldate;
 
        /* If we have somethine we're pretty sure is a date, parse that